export interface LoginParams {
  username: string
  password: string
  type?: 'account'
}

export interface LoginMobileParams {
  mobile: string
  captcha: string
  type: 'mobile'
}

export interface LoginResultVO {
  token: string
}
export function loginApi(params: LoginParams | LoginMobileParams){
  return post('/auth/ua/login',params,{
    token: false
  })
}

export function logoutApi() {
  return get('/loginOut',{}, {
    token: true
  })
}
